CREATE TABLE [dbo].[TTDOCU_IDEN]
(
[TI_DOCU_IDEN] [dbo].[TD_VC_003] NOT NULL,
[DE_TIPO_DOCU] [dbo].[TD_VC_020] NOT NULL,
[TI_DOID_SUNA] [dbo].[TD_VC_002] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TTDOCU_ID__CO_US__1D4655FB] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TTDOCU_ID__FE_US__1E3A7A34] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TTDOCU_ID__CO_US__1F2E9E6D] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TTDOCU_ID__FE_US__2022C2A6] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTDOCU_IDEN] ADD CONSTRAINT [PK__TTDOCU_I__1DCC8DF94D7F7902] PRIMARY KEY CLUSTERED  ([TI_DOCU_IDEN]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTDOCU_IDEN] ADD CONSTRAINT [FK__TTDOCU_ID__TI_DO__511AFFBC] FOREIGN KEY ([TI_DOID_SUNA]) REFERENCES [dbo].[TTDOID_SUNA] ([TI_DOID_SUNA])
GO
GRANT SELECT ON  [dbo].[TTDOCU_IDEN] TO [public]
GRANT INSERT ON  [dbo].[TTDOCU_IDEN] TO [public]
GRANT DELETE ON  [dbo].[TTDOCU_IDEN] TO [public]
GRANT UPDATE ON  [dbo].[TTDOCU_IDEN] TO [public]
GO
